package com.immunology.service.impl;

import java.util.Collection;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.immunology.dao.ComplaintTypeDao;
import com.immunology.domain.ComplaintType;
import com.immunology.domain.Role;
import com.immunology.exception.DaoException;
import com.immunology.service.ComplaintTypeService;

@Service
public class ComplaintTypeServiceImpl implements ComplaintTypeService{

	@Autowired
	private ComplaintTypeDao complaintTypeDao;
	
	@Override
	public ComplaintType findById(Long id) throws DaoException {
		return complaintTypeDao.findById(id);
	}

	@Override
	public List<ComplaintType> getAll() throws DaoException {
		return complaintTypeDao.getAll();
	}

	@Override
	public void saveOrUpdate(Collection<ComplaintType> entities)
			throws DaoException {
		complaintTypeDao.saveOrUpdate(entities);
	}

	@Override
	public void saveOrUpdate(ComplaintType... entities) throws DaoException {
		complaintTypeDao.saveOrUpdate(entities);
	}

	@Override
	public void update(Collection<ComplaintType> entities) throws DaoException {
		complaintTypeDao.update(entities);
	}

	@Override
	public void update(ComplaintType... entities) throws DaoException {
		complaintTypeDao.update(entities);
	}

	@Override
	public void delete(Collection<ComplaintType> entities) throws DaoException {
		complaintTypeDao.delete(entities);
	}

	@Override
	public void delete(ComplaintType... entities) throws DaoException {
		complaintTypeDao.delete(entities);
	}
	
	@Override
	public void deleteAll() throws DaoException {
		complaintTypeDao.deleteAll();
	}

	@Override
	public void save(Collection<ComplaintType> entities) throws DaoException {
		complaintTypeDao.save(entities);
	}

	@Override
	public void save(ComplaintType... entities) throws DaoException {
		complaintTypeDao.save(entities);
	}

}
